package com.hzf.material.dao.model;

import java.io.Serializable;

public class MaterialGoodsTypeSmall implements Serializable {
    /**
     * 商品类型大类ID（自增）
     *
     * @mbg.generated
     */
    private Integer smallId;

    /**
     * 商品类型大类名称
     *
     * @mbg.generated
     */
    private String smallName;

    /**
     * 中类ID
     *
     * @mbg.generated
     */
    private Integer middleId;
    private String middleName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    public Integer getSmallId() {
        return smallId;
    }

    public void setSmallId(Integer smallId) {
        this.smallId = smallId;
    }

    public String getSmallName() {
        return smallName;
    }

    public void setSmallName(String smallName) {
        this.smallName = smallName;
    }

    public Integer getMiddleId() {
        return middleId;
    }

    public void setMiddleId(Integer middleId) {
        this.middleId = middleId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", smallId=").append(smallId);
        sb.append(", smallName=").append(smallName);
        sb.append(", middleId=").append(middleId);
        sb.append(", middleName=").append(middleName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialGoodsTypeSmall other = (MaterialGoodsTypeSmall) that;
        return (this.getSmallId() == null ? other.getSmallId() == null : this.getSmallId().equals(other.getSmallId()))
            && (this.getSmallName() == null ? other.getSmallName() == null : this.getSmallName().equals(other.getSmallName()))
            && (this.getMiddleId() == null ? other.getMiddleId() == null : this.getMiddleId().equals(other.getMiddleId()))
            && (this.getMiddleName() == null ? other.getMiddleName() == null : this.getMiddleName().equals(other.getMiddleName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSmallId() == null) ? 0 : getSmallId().hashCode());
        result = prime * result + ((getSmallName() == null) ? 0 : getSmallName().hashCode());
        result = prime * result + ((getMiddleId() == null) ? 0 : getMiddleId().hashCode());
        result = prime * result + ((getMiddleName() == null) ? 0 : getMiddleName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}